import {request} from '../../utils/request'


export function getCharts(pageInfo){
    return request({
        url: "/middle-server/api/charts/v1/getCharts",
        method: "GET",
        data: pageInfo
    })
}

export function getChartMsg(params){
    return request({
        url: "/middle-server/api/charts/v1/getChartMsg",
        method: "GET",
        data: params
    })
}

export function createNewChart(userId){
    return request({
        url: "/middle-server/api/charts/v1/createNewChart",
        method: "GET",
        data: {chartUserId:userId}
    })
}

export function updateChartMsgIsRead(params){
    return request({
        url: "/middle-server/api/charts/v1/updateChartMsgIsRead",
        method: "GET",
        data: params
    })
}